package com.abc.liuyan.service.impl;

import org.springframework.stereotype.Service;

import com.abc.liuyan.mapper.CfgMapper;
import com.abc.liuyan.model.Cfg;
import com.abc.liuyan.service.CfgService;
import com.abc.service.impl.BaseService;

/**
 *
 * @author huangxin <3203317@qq.com>
 *
 */
@Service("cfgService")
public class CfgServiceImpl extends BaseService<CfgMapper, Cfg> implements
		CfgService {

	@Override
	public Cfg getById(String t, String id) {
		Cfg _cfg = new Cfg();
		_cfg.setId(id);
		return getById(_cfg);
	}

	@Override
	public Cfg editInfo(Cfg cfg) {
		cfg.setCreate_time(null);
		updateNotNull(cfg);
		return cfg;
	}

}
